<script>
$(document).ready(function(){
	
			var elf = $('<?php echo $this->selector?>').elfinder({
				url : '<?php echo $this->action?>', 
				lang: 'zh_CN',
				height:550,
				contextmenu : {
					// navbarfolder menu
					navbar : ['copy', 'cut', 'paste', 'duplicate', '|', 'rm', '|', 'info'],

					// current directory menu
					cwd    : ['reload', 'back', '|', 'upload', 'mkdir', 'mkfile', 'paste', '|', 'info'],

					// current directory file menu
					files  : [
						'getfile', '|','quicklook', '|', 'download', '|', 'copy', 'cut', 'paste', 'duplicate', '|',
						'rm', '|', 'edit', 'rename', 'resize', '|', 'archive', 'extract', '|', 'info'
					]
				},
				uiOptions : {
					// toolbar configuration
					toolbar : [
						['back', 'forward'],
						['reload'],
						['home', 'up'],
						['mkdir', 'mkfile', 'upload'],
						['download', 'getfile'],
						['copy', 'cut', 'paste'],
						['rm'],
						['duplicate', 'rename', 'edit', 'resize'],
						['extract', 'archive'],
						['search'],
						['view'],
						['help']
					],
				}
			}).elfinder('instance');		
})
</script>